package cc.wsyw126.java.service;

/**
 * Created by junpeng.yang on 16/8/12.
 */
public class Threadsleep {
    public void th() throws InterruptedException {
        long start = System.currentTimeMillis();
        System.out.println("start = " + start);
        Thread.sleep(3000);
        System.out.println(System.currentTimeMillis()-start);
    }
    public static void main(String[] args) throws InterruptedException {
        Threadsleep threadsleep = new Threadsleep();
        threadsleep.th();
        long start = System.currentTimeMillis();
        Thread.sleep(3000);
        System.out.println("start = " + start);
        Thread.sleep(3000);
		System.out.println(System.currentTimeMillis() - start);
	}
}
